|
900260 Automated Visual Event Detection and Classification : AVED Special Features
This page last changed on Jun 18, 2008 by dcline.
Installing an AVED-enabled Condor nodeRPM installation
Installing Condor as a service on Linux
Configuring CondorChange the following value in the /opt/condor-xxxxxxx/local.xxxxxx/condor_config.local
## When is this machine willing to start a job? START = TRUE ## When to suspend a job? SUSPEND = FALSE ## When to nicely stop a job? ## (as opposed to killing it instantaneously) PREEMPT = FALSE ## When to instantaneously kill a preempting job ## (e.g. if a job is in the pre-empting stage for too long) KILL = FALSE Installing AVED as a web-serviceA web-service has been written to make the system easy to interface and automate. AVED web-service requires AVED and its dependencies to be install (cf. AVED Guide section Installation) and requires Condor as well (cf. AVED Guide section Special Features-Installing an AVED-enabled Condor node). Moreover, in order to deploy AVED web-service, a web application server is required. We'll consider in this Guide starting from scratch, so if you already have an application server runing and install go to section: Deploy the AVED web-service.
The AVED web-service is distributed as source files that you must compile yourself, however, a ant script is provided to help you in this step. Here is a short overview of the steps to build and deploy the AVED web -service from sources:
Preparation for deploy the AVED web-serviceIn this section we're gonna install the application server apache Tomcat, the web-service utils with apach Axis2, and finally ant to be able to built the AVED web-service. If you already have an application web-server install and runing you can directly go to the Deploy the AVED web-service. Installing JavaApache Tomcat and ant require Java to be install on your computer. You can process different way: RPMs, self-extracted, or sources. If you're using sources, download the binaries distribution from http://www.sun.com/java/. Then untat and set the JAVA_HOME environmental variable to the full path of your Java distribution. tar xzvf jdkx.xxx.tar.gz export JAVA_HOME=<full-path-to-Java> Installing apache TomcatTo install Apache tomcat, first download it from http://tomcat.apache.org/ (download the core version). Then extract it into the folder where you want to setup your application server.
tar xzvf apache-tomcat-xxxxxx.tar.gz To test if your application server is on, just start it, you have to be in the apache-tomcat folder: ./bin/catalina.sh start Start your favorite browser and tape: http://localhost:8080/, if everything is working you should fall on the apache-tomcat presentation page. Now your application server is up, download the web-service utilities from http://ws.apache.org/axis2/ (download the war distribution) and copy it into the <full-path-to-tomcat>/webapps folder. cp <path-to-axis2>/axis2.war <path-to-tomcat>/webapps Then on your browser, tape: http://localhost:8080/axis2. You should find at this URL the axis2 presentation page.
Installing apache AntThe binarie distribution can be found at: http://ant.apache.org/bindownload.cgi. Download it and untar it into the folder you want ant to be install. You can install it from rpms as well. Ant is not required to build the AVED web-service, it's just more convinient to build it, but you can compile it by yourself using javac. Don't forget to add to the classpath the jars included into the aved-webservice/jars folder.
tar xzvf apache-antxxxxxxx.tar.gz Allowing condor to be requested from httpOpen the file <path-to-condor>/etc/condor_config and add the following lines (wherever in part 1) SCHEDD_ARGS=-p 8181 ENABLE_SOAP = TRUE ALLOW_SOAP = */* ENABLE_WEB_SERVER = TRUE QUEUE_ALL_USERS_TRUSTED = TRUE You can set the SCHEDD_ARGS to the port you prefere, here we choose 8181. You have to restart condor or juste reconfig it:
condor_reconfig Deploy the AVED web-serviceTo deploy the AVED web-service, ant and an application web-server are required, if you don't have any please refer to AVED Guide - Special Features section Installing AVED as a web-service - Preparation for deploy the AVED web-service.
public static String SCHEDD_LOCATION = "http://host.domain.name.org:8181"; public static String USER = "aved"; Then, compile the source by tapping ant If everything is going well, you should see a BUILD SUCCESSFULL printed, and a build folder should have been created. In these folder you'll find a AvedService.aar file what is the web-service ! To deploy it, just copy and past this file into your application server directory, and the jars from the jars into the application server lib directory: cp build/AvedService.aar <full-path-to-tomcat>/webapps/axis2/WEB-INF/services/ cp jars/*.jar <full-path-to-tomcat>/webapps/axis2/WEB-INF/lib/ Restart tomcat, and check with your browser if your web-service is up by tapping http://host:8080/axis2/services/listServices, AvedService should be listed. The AVED web-service requires 4 envirenmental variables: export MBARIVISIONROOT=<full-path-to-mbarivision> export JAVA_HOME=<full-path-to-Java> export CONDOR_CONFIG=/opt/condor-xxxxxxxxx/etc/condor_config export CONDOR_SPOOL=/opt/condor-xxxxxxx/local.xxxxxxx/spool You can know test it with the client code provided !
The web service client is basicly a java code what send a job to AVED wait until the status id is at 4 (completed) and get the result.
Installing the AVED web-service as a service on Linux
Start the tomcat service
service tomcat start |
| Document generated by Confluence on Feb 03, 2026 14:12 |